package lyf.test.controllers;

import lyf.framework.beans.AutoWired;
import lyf.framework.web.mvc.Controller;
import lyf.framework.web.mvc.RequestMapping;
import lyf.framework.web.mvc.RequestParam;
import lyf.test.services.SalaryService;

@Controller
public class SalaryController {

	@AutoWired
	private SalaryService salaryService;

	@RequestMapping("/getSalary.json")
	public Integer getSalary(@RequestParam("name") String name, @RequestParam("experience") String experience) {
		return salaryService.calSalary(Integer.valueOf(experience));
	}
}
